<%@ page import="java.util.List" %>
<%@ page import="com.opensymphony.xwork2.util.ValueStack" %>
<%@ page import="question.ClassifyInfo" %>
<%@ page import="account.AccountUtils" %>
<%@ page import="utils.Var" %>
<%@ page import="examinee.ExamineeVar" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
  <title></title>
  <link href="../../skin/default/global.css" rel="stylesheet" type="text/css"/>
  <link href="../../skin/default/layout.css" rel="stylesheet" type="text/css"/>
</head>
<%
  if (!AccountUtils.hasRight(session, Var.RIGHT_STATISTIC)) throw new Exception("deny!");
  
  ValueStack vs = (ValueStack) request.getAttribute("struts.valueStack");
  List<String> plist = (List<String>) vs.findValue("plist");
  List<ClassifyInfo> clist = (List<ClassifyInfo>) vs.findValue("clist");
%>
<body class="admin-content admin-panel-body">
<form action="" name="form1" id="form1" target="main" method="post">
  <table class="admin-panel" width="100%" height="100%" cellSpacing="0" cellPadding="0">
    <thead>
      <tr>
        <td>
          <span class="round"></span>
          <b>设置统计条件</b>
        </td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>
          <div class="overflow">
            <dl>
              <dt>考试日期</dt>
              <dd>起：<input type="text" onClick="WdatePicker()" readonly="readonly" name="from" id="from" class="normal date"/></dd>
              <dd>止：<input type="text" onClick="WdatePicker()" readonly="readonly" name="to" id="to" class="normal date"/></dd>
              <dt>考试驾校</dt>
              <dd>
                <select name="pxjg">
                  <option value="">全部</option>
                  <%
                    for (String p : plist) {
                  %>
                  <option value="<%=p%>"><%=p%>
                  </option>
                  <%
                    }
                  %>
                </select>
              </dd>

              <dt>考试科目</dt>
              <dd>
                <select name="kmID">
                  <option value="0">全部</option>
                  <%
                    for (ClassifyInfo c : clist) {
                  %>
                  <option value="<%=c.getCid()%>"><%=c.getCname()%>
                  </option>
                  <%
                    }
                  %>
                </select>
              </dd>

              <dt>成绩</dt>
              <dd>
                <select name="score">
                  <option value="<%=ExamineeVar.SCORE_ALL%>">全部</option>
                  <option value="<%=ExamineeVar.SCORE_TESTED%>">已考</option>
                  <option value="<%=ExamineeVar.SOCRE_NOT_TEST%>">未考</option>
                </select>
              </dd>
            </dl>
            <div class="bar">
              <button class="normal blue" onclick="form.action='getPassRate.action';form.target='main';form1.submit()"  >通过率<span></span></button>
              <button class="normal blue" onclick="form.action='getScores.action';form.target='main';form1.submit()">成　绩<span></span></button>
            </div>
          </div>
        </td>
      </tr>
    </tbody>
  </table>
</form>
<script src="../../common/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="../../common/DatePicker/WdatePicker.js" type="text/javascript"></script>
</body>

</html>